﻿using System;
using ProtoBuf;
using ZyGames.Framework.Common;
using ZyGames.Framework.Collection;
using ZyGames.Framework.Model;


namespace ZyGames.DZPocker.Model
{
	/// <summary>
	/// 
	/// </summary>
	[Serializable, ProtoContract]
	[EntityTable(AccessLevel.ReadOnly, DbConfig.Config)]
	public class TaskInfo : ShareEntity
	{

		/// <summary>
		/// </summary>
		public TaskInfo()
			: base(true)
		{

		}

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(1)]
		[EntityField(true)]
		public int TaskID { get; set; }

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(2)]
		[EntityField]
		public string TaskName { get; set; }

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(3)]
		[EntityField]
		public TaskType TaskType { get; set; }

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(4)]
		[EntityField]
		public TaskClass TaskClass { get; set; }

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(5)]
		[EntityField]
		public int RestraintNum { get; set; }

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(6)]
		[EntityField]
		public int AchieveID { get; set; }

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(7)]
		[EntityField]
		public int GameCoin { get; set; }

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(8)]
		[EntityField]
		public string TaskDesc { get; set; }
	}
}